package com.ruibang.glass.purchase.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 采购申请物品列表
 * </p>
 *
 * @author mameng
 * @since 2024-03-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(description = "采购申请物品列表")
@TableName(value = "g_purchase_request_items")
public class PurchaseRequestItems extends BaseEntity implements Serializable {

    @ApiModelProperty(value = "物品ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "物料名称")
    @ExcelProperty(index = 0)
    private String itemName;

    @ApiModelProperty(value = "物料代码")
    private String itemCode;

    @ApiModelProperty(value = "物料Id")
    private String itemId;

    @ApiModelProperty(value = "规格型号")
    @ExcelProperty(index = 1)
    private String specificationModel;

    @ApiModelProperty(value = "单位")
    @ExcelProperty(index = 2)
    private String unit;

    @ApiModelProperty(value = "数量")
    @ExcelProperty(index = 3)
    private Double quantity;

    @ApiModelProperty(value = "建议品牌")
    @ExcelProperty(index = 4)
    private String recommendedBrand;

    @ApiModelProperty(value = "备注")
    @ExcelProperty(index = 5)
    private String remarks;

    @ApiModelProperty(value = "采购申请Id")
    private String purchaseApplicationId;

    @ApiModelProperty(value = "含税单价")
    private BigDecimal taxInclusiveUnitPrice;

    @ApiModelProperty(value = "含税总价")
    private BigDecimal taxInclusiveTotalPrice;

    @ApiModelProperty(value = "税率")
    private BigDecimal taxRate;

    @ApiModelProperty(value = "税额")
    private BigDecimal taxAmount;

    @ApiModelProperty(value = "不含税单价")
    private BigDecimal taxExclusiveUnitPrice;

    @ApiModelProperty(value = "不含税总价")
    private BigDecimal taxExclusiveTotalPrice;

    @ApiModelProperty(value = "供货期")
    private String supplyPeriod;

    @ApiModelProperty(value = "仓库Id")
    private String warehouseId;

    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;

    @ApiModelProperty("")
    @TableField(exist = false)
    private String index;

    @ApiModelProperty("是否已申请0:否,1:是")
    private String isRequest;

}
